<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录</title>
    <link rel="stylesheet" href="../css/login.css" />
  </head>
  <body>
    <div class="box">
      <div class="logo"></div>
      <div class="go">
        <div class="nums">
          <input type="text" placeholder="输入手机号"/>
          <span>x</span>
        </div>
        <div class="psw">
          <input type="password" placeholder="首次登陆为注册"/>
        </div>
        <button>登录</button>
        <div class="foot">
          <p>未注册用户登录将自动创建报哪好账号，即视为您已同意</p>
          <a href="#">《报哪好用户服务协议》</a>
        </div>
      </div>
    </div>

    <script src="../js/jQuery.js"></script>
    <script>
      $(function(){
        $('button').click(function(){
          $('.nums input').val() === '15039159952' && $('.psw input').val() === '123456'?
          location.href = './My.html':alert('您输入的手机号或密码有误！！！')
        })
      })
    </script>
  </body>
</html>
